using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._DataManagementTools._Attachments
{
    /// <summary>
    /// <para>Enable Attachments</para>
    /// <para>Enables attachments on a geodatabase feature class or table. The tool creates the necessary attachment relationship class and attachment table that will store attachment files internally.</para>
    /// <para>启用地理数据库要素类或表上的附件。该工具将创建必要的附件关系类和附件表，用于在内部存储附件文件。</para>
    /// </summary>    
    [DisplayName("Enable Attachments")]
    public class EnableAttachments : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public EnableAttachments()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_dataset">
        /// <para>Input Dataset</para>
        /// <para>The geodatabase table or feature class for which attachments will be enabled. The input must be in a version 10 or later geodatabase.</para>
        /// <para>将为其启用附件的地理数据库表或要素类。输入必须位于版本 10 或更高版本的地理数据库中。</para>
        /// </param>
        public EnableAttachments(object _in_dataset)
        {
            this._in_dataset = _in_dataset;
        }
        public override string ToolboxName => "Data Management Tools";

        public override string ToolName => "Enable Attachments";

        public override string CallName => "management.EnableAttachments";

        public override List<string> AcceptEnvironments => ["workspace"];

        public override object[] ParameterInfo => [_in_dataset, _out_dataset];

        /// <summary>
        /// <para>Input Dataset</para>
        /// <para>The geodatabase table or feature class for which attachments will be enabled. The input must be in a version 10 or later geodatabase.</para>
        /// <para>将为其启用附件的地理数据库表或要素类。输入必须位于版本 10 或更高版本的地理数据库中。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_dataset { get; set; }


        /// <summary>
        /// <para>Updated Input Dataset</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Input Dataset")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_dataset { get; set; }


        public EnableAttachments SetEnv(object workspace = null)
        {
            base.SetEnv(workspace: workspace);
            return this;
        }

    }

}